fix gtm writer issue with empty tracks. (#521)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Mon, 23 Mar 2020 17:20:35 +0000 (11:20 -0600)
committerGitHub <noreply@github.com>
Mon, 23 Mar 2020 17:20:35 +0000 (11:20 -0600)
commitf7eaf9b3f0e69cc7527df77628f1b01a95ac3adf
tree208f4415b08caa79f40707cf18f55b65e15c9eaa
parenta6b4b9a000423779bc89afedd209fdfc6eebb72a
fix gtm writer issue with empty tracks. (#521)

This format expects one track style entry for each tracklog entry
with the tracklog flag set.  If the tracklog flag is set it indicates the
start of a new track.  Each tracklog entry represents a point.
Thus, it is not possible to represent a track without any points in this
format.

This change prevents the writing of track style entries for tracks that
don't have any points.

Previously, this could cause counts from test-all in the category
"tests without error but with unexpected output" if the refernce file
had tracks with no points.
gtm.cc